import vue from '@vitejs/plugin-vue'

export default {
  base: './',
  plugins: [vue()],
  optimizeDeps: {
    include: ['schart.js']
  },
  hostname: '127.0.0.1',
  port: 3000,
  https: false,
  server: {
    port: 3000,//端口号
    disableHostCheck: true,
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:9090',
        changeOrigin: true,
        rewrite: path => path.replace(/^\/api/, '')
      }
    }
  }
}